﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="edit.aspx.cs" Inherits="morning_edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <link href="../css/jquery-ui-1.7.3.custom.css" rel="Stylesheet" type="text/css" />
    <link href="../css/tipswindown.css" type="text/css" rel="Stylesheet" />
    <script type="text/javascript" src="../edit/jquery/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../edit/xheditor-zh-cn.src.js"></script>
    <script src="../js/jquery.autocomplete.js" type="text/javascript"  language="javascript"></script>
    <script src="../js/StockSearchData.js" language="javascript" type="text/javascript"></script>
    <script src="../js/tipwindows.js" language="javascript" type="text/javascript"></script>    
    <script src="../js/jquery-ui-1.7.3.custom.min.js"></script>
    <script type="text/javascript" defer="defer" src="../My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
    .sub_table 
    {
      width:70%;
	  border-collapse:collapse; 
	  border:solid 1px #000;
	  background-color:#FFF;
    }
    .sub_table tr
    {
        height:25px;
    }
    .sub_table td
    {
        background-color:#FFF;
        border:solid 1px #000;
    }
    .sub_table th
    {
        background-color:#FFF;
        border:solid 1px #000;
    }
    </style>
    <script type="text/javascript">
        function GoToAdd(url) {
            tipsWindown("新增", "iframe:" + url + "?xgid=" + document.getElementById("xgid").value, "720", "200", "true", "", "true", "leotheme");
        }
        function GoToEdit(url, id) {
            tipsWindown("编辑", "iframe:"+url+"?xgid=" + document.getElementById("xgid").value+ "&id=" + id, "720", "200", "true", "", "true", "leotheme");
        }

        function GoToEditBig(url, id) {
            tipsWindown("编辑", "iframe:" + url + "?xgid=" + document.getElementById("xgid").value + "&id=" + id, "720", "450", "true", "", "true", "leotheme");
        }

        function GoToDel(table, id) {
            //alert("iframe:delitem.aspx?talbe=" + table + "&ids=" + id);
            tipsWindown("删除", "iframe:delitem.aspx?table=" + table + "&ids=" + id, "720", "200", "true", "", "true", "leotheme");
        }

        function CloesPage() {
            $("#windownbg").remove();
            $("#windown-box").fadeOut("slow", function () { $(this).remove(); });
        }

        $(pageInit);
        function pageInit() {
            $('#txtCzjy').xheditor();
        }

    </script>    
</head>
<body>
    <form id="form1" runat="server">    
    <div class="button_bar">
        <input type="button" class="common_button" id="btnBack" value="返回" />
        <asp:Button ID="btnSave" CssClass="common_button" runat="server" Text="保存" OnClick="btnSave_Click" />
    </div>
    <div>
        <table class="query_form_table">
            <tr>
                <th>
                    股票代码
                </th>
                <td>
                    <asp:TextBox ID="gpdm" runat="server"></asp:TextBox>
                    <asp:HiddenField ID="xgid" runat="server" />
                </td>
                <th>
                    股票简称
                </th>
                <td>
                    <asp:TextBox ID="gpjc" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    申购代码
                </th>
                <td>
                    <asp:TextBox ID="sgdm" runat="server"></asp:TextBox>
                </td>
                <th>
                    上市地点
                </th>
                <td>
                    <asp:DropDownList ID="ssdd" runat="server">
                        <asp:ListItem Value="上海证券交易所">上海证券交易所</asp:ListItem>
                        <asp:ListItem Value="深圳证券交易所">深圳证券交易所</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <th>
                    所属行业
                </th>
                <td>
                    <asp:TextBox ID="sshy" runat="server" Width="237px"></asp:TextBox>
                </td>
                <th>
                    首日收盘价
                </th>
                <td>
                    <asp:TextBox ID="srspj" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    发行价格(元/手）
                </th>
                <td>
                    <asp:TextBox ID="fxjg" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    发行市盈率
                </th>
                <td>
                    <asp:TextBox ID="fxsyl" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    发行面值
                </th>
                <td>
                    <asp:TextBox ID="fxmz" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    实际募集资金
                </th>
                <td>
                    <asp:TextBox ID="mjzj" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    网上发行日期
                </th>
                <td>
                    <asp:TextBox ID="fxrq" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    网上发行股数
                </th>
                <td>
                    <asp:TextBox ID="fxgs" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    网下配售日期
                </th>
                <td>
                    <asp:TextBox ID="psrq" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    网上配售股数
                </th>
                <td>
                    <asp:TextBox ID="psgs" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    申购上限(万股)
                </th>
                <td>
                    <asp:TextBox ID="sgsl" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    发行总数(万股)
                </th>
                <td>
                    <asp:TextBox ID="zfxgs" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th colspan="4" style="height:5px;"></th>
            </tr>
            <tr>
                <th>
                    中签公布日期
                </th>
                <td>
                    <asp:TextBox ID="zqhggr" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    上市日期
                </th>
                <td>
                    <asp:TextBox ID="ssrq" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    网下配售比例
                </th>
                <td>
                    <asp:TextBox ID="psbl" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    网下配售冻结资金(亿元)
                </th>
                <td>
                    <asp:TextBox ID="psdjzj" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    网上发行中签率
                </th>
                <td>
                    <asp:TextBox ID="fxzql" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    网上申购冻结资金（亿元）
                </th>
                <td>
                    <asp:TextBox ID="sgdjzj" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    每中一签约(万元)
                </th>
                <td>
                    <asp:TextBox ID="fxqy" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    冻结资金总计（亿元）
                </th>
                <td>
                    <asp:TextBox ID="djzjzj" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>            
            <tr>
                <th colspan="4" style="height:5px;"></th>
            </tr>
            <tr>
                <th>
                    申购推荐
                </th>
                <td colspan="3">                    
                 <asp:CheckBox ID="sgtj_1" runat="server" />a. 新股资金解冻是T+3原则,因此首先保证资金解冻后不错过任何一次新股申购(当10个交易日内出现7个以上交易日有新股申购可以人工评级)<br />
                 <asp:CheckBox ID="sgtj_2" runat="server" />b. T+3内申购时间最晚的新股<br />
                 <asp:CheckBox ID="sgtj_3" runat="server" />c. 大盘股(流通盘大于1亿股同时小于5亿股)<br />
                 <asp:CheckBox ID="sgtj_4" runat="server" />d. 价格最高的新股:价格差异要大于30% (当日可申购新股数量超过5个时, 可以人工评级)<br />
                 <asp:CheckBox ID="sgtj_5" runat="server" />e. 行业冷门、基本面相对较差的股票: 行业板块中两个月内涨幅后30%的板块 (当日可申购新股数量超过5个时, 可以人工评级)
                 </td>
            </tr>
            <tr>
                <th>
                    中签号
                </th>
                <td colspan="3">
                    <asp:TextBox ID="zqh" runat="server" Height="75px" TextMode="MultiLine" 
                        Width="486px"></asp:TextBox>
                </td>
            </tr>            
            <tr>
                <th>
                    公司简介
                </th>
                <td colspan="3">
                    <asp:TextBox ID="gsjj" runat="server" Height="75px" TextMode="MultiLine" 
                        Width="486px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    主营业务
                </th>
                <td colspan="3">
                    <asp:TextBox ID="zyyw" runat="server" Height="75px" TextMode="MultiLine" 
                        Width="486px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th colspan="4" style="height:5px;"></th>
            </tr>
            <tr>
                <th>
                    发行前每股净资产（元）
                </th>
                <td>
                    <asp:TextBox ID="fxq" runat="server" Width="92px"></asp:TextBox>
                </td>
                <th>
                    发行后每股净资产（元）
                </th>
                <td>
                    <asp:TextBox ID="fxh" runat="server" Width="92px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    上市推荐人
                </th>
                <td>
                    <asp:TextBox ID="tjr" runat="server" Width="165px"></asp:TextBox>
                </td>
                <th>
                    承销方式
                </th>
                <td>
                    <asp:TextBox ID="cxfs" runat="server" Width="165px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    主承销商
                </th>
                <td colspan="3">
                    <asp:TextBox ID="zcxs" runat="server" Width="447px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    副承销商
                </th>
                <td colspan="3">
                    <asp:TextBox ID="fzcxs" runat="server" Width="447px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    股利分配制度
                </th>
                <td colspan="3">
                    <asp:TextBox ID="zlfpzc" runat="server" Width="447px"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <th colspan="4" style="height:5px;"></th>
            </tr>
            <tr>
                <th>券商预测价</th>
                <td><asp:TextBox ID="txtQsycj" runat="server" /> 
                </td>
                <th>盈利预测10E</th>
                <td><asp:TextBox ID="txtYlyc10E" runat="server" /> 
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ControlToValidate="txtYlyc10E" Display="Dynamic" ErrorMessage="格式不对" 
                        ForeColor="Red" 
                        ValidationExpression="^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|^[1-9]\d*$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <th>每股收益11E</th>
                <td><asp:TextBox ID="txtMgsy11E" runat="server" /> 
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtMgsy11E" ErrorMessage="格式不对" ForeColor="Red" 
                        ValidationExpression="^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|^[1-9]\d*$"></asp:RegularExpressionValidator>
                </td>
                <th>预测收益率</th>
                <td>
                    <asp:TextBox ID="txtYcsyl" runat="server" />
                </td>
            </tr>
            <tr>
                <th>分析评测</th>
                <td colspan="3">
                    <asp:TextBox ID="txtCzjy" runat="server" Height="200px" TextMode="MultiLine" 
                        Width="400px" />
                </td>
            </tr>
        </table>
   
      

 
    </div>
    <div class="button_bar">
        <input type="button" class="common_button" id="btnBack1" value="返回" />
        <asp:Button ID="Button2" CssClass="common_button" runat="server" Text="保存" OnClick="btnSave_Click" />
    </div>
    <div>
    <table class="query_form_table">
            <tr>
                <th>
                    IPO初步询价及推介公告日程
                </th>
            </tr>
            <tr><td>
            <table class="sub_table">
               <tr>
                 <td colspan="4">
                 <input type="button" value="增加" onclick="GoToAdd('editGgrq.aspx')" style="color:#1E5494;height:26px;width:68px;cursor:pointer;"/>
                 </td>
               </tr>
               <tr>
                 <td>序号</td>
                 <td>日期</td>
                 <td>发行安排</td>
                 <td>操作</td>
               </tr>
               <asp:Repeater ID="RepeaterGGRQ" runat="server">
               <ItemTemplate>
               <tr>
                 <td><%# Eval("id") %></td>
                 <td><%# Eval("ggrq") %></td>
                 <td><%# Eval("fxap") %></td>
                 <td>
                 <input type="button" value="修改" onclick="GoToEdit('editGgrq.aspx','<%# Eval("id") %>')" style="color:#1E5494; border:0px; background-color:#FFF; height:26px;width:68px; cursor:pointer;"/> 
                 <input type="button" value="删除" onclick="GoToDel('ggrq','<%# Eval("id") %>')" style="color:#1E5494; border:0px; background-color:#FFF; height:26px;width:68px; cursor:pointer;"/> 
                 </td>
               </tr>
               </ItemTemplate>
               </asp:Repeater>
            </table>
            </td>
            </tr>
    </table>
    </div>
    <div>
    <table class="query_form_table">
            <tr>
                <th>
                    IPO募集资金将用于的项目
                </th>
            </tr>
            <tr><td>
            <table class="sub_table">
               <tr>
                 <td colspan="4">
                 <input type="button" value="增加" onclick="GoToAdd('editmjxm.aspx')" style="color:#1E5494;height:26px;width:68px;cursor:pointer;"/>
                 </td>
               </tr>
               <tr>
                 <td>序号</td>
                 <td>项目名称</td>
                 <td>投资金额（万元）</td>
                 <td>操作</td>
               </tr>
               <asp:Repeater ID="Repeater1" runat="server">
               <ItemTemplate>
               <tr>
                 <td><%# Eval("tid") %></td>
                 <td><%# Eval("xmmc") %></td>
                 <td><%# Eval("tzje") %></td>
                 <td>
                 <input type="button" value="修改" onclick="GoToEdit('editmjxm.aspx','<%# Eval("tid") %>')" style="color:#1E5494; border:0px; background-color:#FFF; height:26px;width:68px; cursor:pointer;"/> 
                 <input type="button" value="删除" onclick="GoToDel('invset','<%# Eval("tid") %>')" style="color:#1E5494; border:0px; background-color:#FFF; height:26px;width:68px; cursor:pointer;"/> 
                 </td>
               </tr>
               </ItemTemplate>
               </asp:Repeater>
            </table>
            </td>
            </tr>
    </table>
    </div>
    <div>
    <table class="query_form_table">
            <tr>
                <th>
                    主要股东
                </th>
            </tr>
            <tr><td>
            <table class="sub_table">
               <tr>
                 <td colspan="5">
                 <input type="button" value="增加" onclick="GoToAdd('editzygd.aspx')" style="color:#1E5494;height:26px;width:68px;cursor:pointer;"/>
                 </td>
               </tr>
               <tr>
                 <td style="width:10%;">序号</td>
                 <td style="width:15%;">股东名称</td>
                 <td style="width:15%;">持股数量</td>
                 <td style="width:15%;">占总股本比例</td>
                 <td>操作</td>
               </tr>
               <asp:Repeater ID="Repeater2" runat="server">
               <ItemTemplate>
               <tr>
                 <td style="width:10%;"><%# Eval("tid") %></td>
                 <td style="width:10%;"><%# Eval("gdmc") %></td>
                 <td style="width:10%;"><%# Eval("cgsl") %></td>
                 <td style="width:10%;"><%# Eval("gbbl") %></td>
                 <td>
                 <input type="button" value="修改" onclick="GoToEdit('editzygd.aspx','<%# Eval("tid") %>')" style="color:#1E5494; border:0px; background-color:#FFF; height:26px;width:68px; cursor:pointer;"/> 
                 <input type="button" value="删除" onclick="GoToDel('partner','<%# Eval("tid") %>')" style="color:#1E5494; border:0px; background-color:#FFF; height:26px;width:68px; cursor:pointer;"/> 
                 </td>
               </tr>
               </ItemTemplate>
               </asp:Repeater>
            </table>
            </td>
            </tr>
    </table>
    </div>
    <div>
    <table class="query_form_table">
            <tr>
                <th>
                    机构报告
                </th>
            </tr>
            <tr><td>
            <table class="sub_table">
               <tr>
                 <td colspan="4">
                 <input type="button" value="增加" onclick="GoToAdd('editgg.aspx')" style="color:#1E5494;height:26px;width:68px;cursor:pointer;"/>
                 </td>
               </tr>
               <tr>
                 <td style="width:10%;">序号</td>
                 <td style="width:20%;">日期</td>
                 <td style="width:50%;">标题</td>
                 <td style="width:20%;">操作</td>
               </tr>
               <asp:Repeater ID="Repeater3" runat="server">
               <ItemTemplate>
               <tr>
                 <td style="width:10%;"><%# Eval("id") %></td>
                 <td style="width:20%;"><%# ((DateTime)Eval("ggrq")).ToString("yyyy-MM-dd") %></td>
                 <td style="width:50%;"><%# Eval("title") %></td>
                 <td style="width:20%;">
                 <input type="button" value="修改" onclick="GoToEditBig('editgg.aspx','<%# Eval("id") %>')" style="color:#1E5494; border:0px; background-color:#FFF; height:26px;width:68px; cursor:pointer;"/> 
                 <input type="button" value="删除" onclick="" style="color:#1E5494; border:0px; background-color:#FFF; height:26px;width:68px; cursor:pointer;"/> 
                 </td>
               </tr>
               </ItemTemplate>
               </asp:Repeater>
            </table>
            </td>
            </tr>
    </table>
    </div>
    </form>
</body>
</html>